package org.dromara.system.domain.bo;

import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.system.domain.SysSequence;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 序号业务对象 sys_sequence
 *
 * @author yilong.fu
 * @date 2023-05-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysSequence.class, reverseConvertGenerate = false)
public class SysSequenceBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 序号名称
     */
    @NotBlank(message = "序号名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 当前值
     */
    @NotNull(message = "当前值不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long currentValue;

    /**
     * 增加量
     */
    @NotNull(message = "增加量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long increment;


}
